package com.forestar.mapControl.utils.tile;

public class TileConstants
  {
    //                                         赤道周长：40075.02千米 每张瓦片为256*256像素
    public static final double MIN_LEVEL_RESOLUTION_IN_MERCATOR = 1000 * 40075.02/256;
    public static final double ORIGIN_X_IN_MERCATOR = -20037508.342789;
    public static final double ORIGIN_Y_IN_MERCATOR = 20037508.342789;
    public static final int MIN_LEVEL_IN_MERCATOR = 0;
    public static final int MAX_LEVEL_IN_MERCATOR = 20;
    public static final double MERCATOR_WORLD_WIDTH = 20037508.342789 * 2;
    public static final double MERCATOR_WORLD_HEIGHT = 20037508.342789 * 2;

    //PETRA:互联网地图，经纬度坐标系，瓦片参数，暂时用于天地图（cgcs2000）。
    public static final double MIN_LEVEL_RESOLUTION_IN_NET_TILE = 180 / 256.0;
    public static final double ORIGIN_X_IN_NET_TILE = -180;
    public static final double ORIGIN_Y_IN_NET_TILE = 90;
    public static final int MIN_LEVEL_IN_NET_TILE = 1;
    public static final int MAX_LEVEL_IN_NET_TILE = 18;
    public static final double NET_TILE_WORLD_WIDTH = 180 * 2;
    public static final double NET_TILE_WORLD_HEIGHT = 90 * 2;

    public static final double MERCATOR_XMIN = -20037508.342789;
    public static final double MERCATOR_XMAX = 20037508.342789;
    public static final double MERCATOR_YMIN = -20037508.342789;
    public static final double MERCATOR_YMAX = 20037508.342789;
  }
